/**
 * 搜索请求模块
 */
import request from '@/utils/request'
/**
 *
 * @param {*} q
 */
export const getSesrchSuggestion = q => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}
/**
 * 获取搜索结果
 * @param {*} params {page: 页码, per_page: 每页数量, q: 搜索关键词}
 */
export const getSearchResults = params => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params
  })
}
